package com.xin.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 通用字典库
 * </p>
 *
 * @author l1
 * @since 2017-10-24
 */
@TableName("s_dict_common")
public class SDictCommon extends Model<SDictCommon> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 名称
     */
	private String name;
    /**
     * 标识 1:政治面貌 2: 职务职级 3:职称职级 4:编制类别 5:人事关系类型 6:学历学位 7:研究方向 8:学科归属 9:专业归属 
     */
	private String flag;
    /**
     * 展示顺序
     */
	@TableField("show_order")
	private Integer showOrder;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public Integer getShowOrder() {
		return showOrder;
	}

	public void setShowOrder(Integer showOrder) {
		this.showOrder = showOrder;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "SDictCommon{" +
			"id=" + id +
			", name=" + name +
			", flag=" + flag +
			", showOrder=" + showOrder +
			"}";
	}
}
